//
//  HomeCellModel.m
//  DaoZiJinFu
//
//  Created by woker on 16/7/1.
//  Copyright © 2016年 iwoker. All rights reserved.
//

#import "HomeCellModel.h"

@implementation HomeCellModel

+ (HomeCellModel *)modelWithDict:(NSDictionary *)dict {
    HomeCellModel *model = [[HomeCellModel alloc] init];
//    [model setValuesForKeysWithDictionary:dict];
    [model setName:dict[@"name"]];
    [model setId:dict[@"id"]];
    [model setDay_number:[dict[@"day_number"] doubleValue]];
    [model setAnnual_gains:[dict[@"annual_gains"] doubleValue]];
    [model setBuy_max_amount:[dict[@"buy_max_amount"] doubleValue]];
    [model setBuy_min_amount:[dict[@"buy_min_amount"] doubleValue]];
    [model setRemaining_investment_amount:[dict[@"remaining_investment_amount"] doubleValue]];
    return model;
}

@end
